package com.luke.springcloud.controller;

import com.luke.springcloud.service.IMessageProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;

@RestController
public class MessageController {

    @Resource
    private IMessageProvider messageProvider;

    /**发送消息到消息队列*/
    @GetMapping(value = "/sendMessage")
    public String sendMessage(){
        return messageProvider.send();
    }

}
